<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
  <meta charset="UTF-8">
  <title>^^title-设备管理管理-列表</title>
  <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>

  <link rel="stylesheet" href="^^static_url/css/vendor.css">
  <link rel="stylesheet" href="^^static_url/css/1m2.css">
</head>
<body>
@@include('header.html')
@@include('menu.html')
<div class="content-wrap">
  <div class="toolbar">
    <div class="pull-right">
      <a href="./add.html" class="btn btn-primary btn-bordered btn-h-lg external" id="download-info">
        导出
      </a>
      <a href="./add.html" class="btn btn-primary btn-bordered btn-h-lg external" id="add-device">
        添加
      </a>
      <a id="export" href="#" class="btn btn-primary btn-bordered btn-h-lg" data-toggle="modal"
         data-target="#batch-import-modal">
        <i class="iconfont icon-daoru"></i> 批量添加
      </a>
    </div>
  </div>
  <div class="filter-content" id="vue-app">
    <form id="searchForm">
      <div class="row">
        <div class="col-md-4">
          <div class="form-group">
            <label>状态</label>
            <select id="statu" name="statu" class="form-control" autocomplete="off">
              <option value="">请选择状态</option>
              <option value="2">使用中</option>
              <option value="4">闲置中</option>
              <option value="3">绑定中</option>
              <option value="1">刚入库</option>
              <option value="5">审核中（启用）</option>
              <option value="6">审核中（停用）</option>
              <option value="7">审核中（解绑）</option>
            </select>
          </div>
        </div>
        <div class="col-md-4">
          <div class="form-group">
            <label>区域</label>
            <select id="propertyArea" name="propertyArea" class="form-control" autocomplete="off">
              <option value="">选择区域</option>
              <option value="hd">华东</option>
              <option value="hx">华西</option>
              <option value="hn">华南</option>
              <option value="hb">华北</option>
              <option value="hz">华中</option>
            </select>
          </div>
        </div>
        <div class="col-md-4" v-if="pageType==='pos'">
          <div class="form-group">
            <label>支付机构</label>
            <select id="type" name="type" class="form-control" autocomplete="off">
              <option value="">请选择</option>
              <!-- <option v-if="pageType==='ytj'" value="xf">拉卡拉POS</option>
              <option v-if="pageType==='ytj'" value="fk">银商POS</option> -->
              <option v-if="pageType==='pos'" value="2">拉卡拉POS</option>
              <option v-if="pageType==='pos'" value="3">银商POS</option>
            </select>
          </div>
        </div>
        <div class="col-md-4">
          <div class="form-group">
            <label>服务类型</label>
            <select id="serviceType" name="serviceType" class="form-control" autocomplete="off">
              <option value="">请选择</option>
              <option value="ckzm">存款证明</option>
              <option v-if="pageType==='ytj'" value="xf">选房</option>
              <option v-if="pageType==='ytj'" value="fk">付款</option>
              <option v-if="pageType==='pos'" value="xf">存转定</option>
              <option v-if="pageType==='pos'" value="fk">扫码收定金</option>
            </select>
          </div>
        </div>
        <div class="col-md-6">
          <div class="form-group">
            <label>查询</label>
            <input id="vague" name="vague" type="text" class="form-control" autocomplete="off"
                   :placeholder="iptPlaceholder">
          </div>
        </div>
        <div class="col-md-2 with-label">
          <button id="search-btn" type="button" class="btn btn-primary btn-h-lg">
            <i class="iconfont icon-chazhao"></i> 搜索
          </button>
        </div>
      </div>
    </form>
  </div>
  <table id="table"></table>
</div>
@@include('footer.html')

<!-- 批量导入模态框 -->
<div class="modal fade" id="batch-import-modal" tabindex="-1">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">批量导入</h4>
      </div>
      <div class="modal-body">
        <div class="bg-danger" style="padding: 10px;margin-bottom: 20px;border-radius: 4px; display: none;"
             id='batch-import-modal-error'>文件格式不支持!
        </div>
        <form enctype="multipart/form-data" id="uploadForm">
          <div class="form-group">
            <label class="control-label">选择导入文件</label>
            <input name="file" type="file" autocomplete="off" id='batch-import-modal-file'>
          </div>
          <div class="form-group">
            <p class="form-control-static"><a href="" id="download-template">下载模板</a></p>
          </div>
        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-primary" disabled id='batch-import-modal-submit'>导入</button>
      </div>
    </div>
  </div>
</div>
</body>
<script src="^^static_url/js/vendor.js"></script>
<script src="^^static_url/js/deviceControl_index.js"></script>
</html>